//
//  MapIcon.h
//  Operator
//
//  Created by Ardi Tjandra on 12/6/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import <MapKit/MapKit.h>
#import <Foundation/Foundation.h>
#import "Located.h"

// types of annotations for which we will provide annotation views. 
typedef enum {
	MapIconTypeCheckpoint  = 0,
    MapIconTypeBase        = 1,
	MapIconTypeOwnRunner   = 2,
	MapIconTypeOwnHunter   = 3,
	MapIconTypeOtherRunner = 4,
	MapIconTypeOtherHunter = 5
} MapIconType;

@interface MapIcon : NSObject <MKAnnotation>
{
    CLLocationCoordinate2D _coordinate;
    MapIconType            _type;
    NSString*              _ID;
    NSString*              _title;
    NSString*              _bindingId;
    bool                   _updated;
}

-(id) initWithCoordinate:(CLLocationCoordinate2D)coordinate 
		      annotationType:(MapIconType) type
            annotationId:(NSString*)ID
				           title:(NSString*)title;

@property (nonatomic, assign) CLLocationCoordinate2D coordinate;
@property MapIconType type;
@property (nonatomic, retain) NSString* ID;
@property (nonatomic, retain) NSString* title;
@property (nonatomic, retain) NSString* bindingId;
@property bool updated;

@end